package com.example.myimageshare.Utils;

import android.util.Log;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

    public static String getData(Date date){
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Log.d("DateUtil",date.toString());
        String strDate = df.format(date);

        return strDate;
    }
}
